package com.mszlu.blog.service;

import com.mszlu.blog.dao.pojo.Admin;
import com.mszlu.blog.dao.pojo.SysUser;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.params.LoginParam;

/**
 * @Package: com.mszlu.blog.service
 * @ClassName: LgoinService
 * @Author: 陈威
 * @CreateTime: 2021/8/30 16:32
 * @Description:
 */
public interface LoginService {
    //登录验证
    Result login(LoginParam loginParam);

    //校验token信息   调用者 SysUserServiceImpl
    SysUser checkToken(String token);
    //校验admintoken信息   调用者 SysUserServiceImpl
    Admin checkAdminToken(String token);

    //退出登录
    Result logout(String token);

    //注册
    Result register(LoginParam loginParam);
}